using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;

namespace Sandia.MVCShell
{
    /// <summary>
    /// A form used as a splash screen on MVCShell startup.
    /// </summary>
    public partial class SplashScreen : Form
    {
        /// <summary>
        /// Constructor for SplashScreen.
        /// </summary>
        public SplashScreen()
        {
            InitializeComponent();

            Assembly assembly = Assembly.GetEntryAssembly();
            FileVersionInfo info = FileVersionInfo.GetVersionInfo(assembly.Location);
            this.mvcShellVersionLabel.Text = info.ProductVersion;
            assembly = Assembly.GetAssembly(typeof(Sandia.MVCFramework.Data.DataPacket));
            info = FileVersionInfo.GetVersionInfo(assembly.Location);
            this.mvcVersionLabel.Text = info.ProductVersion;
            assembly = Assembly.GetAssembly(typeof(ApplicationInfoPlugin.ApplicationInfoPluginImplementation));
            info = FileVersionInfo.GetVersionInfo(assembly.Location);
            this.mvcPluginVersionLabel.Text = info.ProductVersion;
        }
    }
}